package com.example.demo.service;

import java.util.List;

import com.example.demo.entity.User;


/**
 * @Transactional:绑定事务
 * @Service:service注解
 * @author jianglinhan
 *
 */

public interface UserService {

	//保存用户
	public Integer saveUser(User user);
	
	//所有查询
	public List<User> findAll();
	
	//删除user
	public Integer deleteUser(Integer id);
	
	//通过id获取user
	public User findById(Integer id);
	
	//修改user
	public Integer updateUser(User user);
}
